Page({
  data: {
    info: [
      { id: "0", img: "", name: "人员管理", info: "保安人员信息管理" },
      { id: "1", img: "", name: "地点录入", info: "管理员录入考勤地点" },
      // { id: "2", img: "", name: "发起签到", info: "发起签到" },
      // { id: "3", img: "", name: "签到列表", info: "检查人员签到情况" },
      { id: "4", img: "", name: "已录入地点", info: "查看已录入地点" }
    ]
  },
  tap: e => {
    console.log(e)
    var btnID = e.currentTarget.id
    switch (btnID) {
      case "0": 
        wx.req('userBasicInfoGet', { user_id: '*' }).then((res) => {
          console.log(res)
          wx.appData.allUser = res.data.data;
          wx.navigateTo({ url: '../employee/employee' });
        })
        break;
      case "1": wx.navigateTo({ url: '../entry/entry' }); break;
      case "2": break;
      case "3": break;
      case "4": wx.navigateTo({ url: '../locations/locations' }); break;
    }

  },

})